package com.caozhi.mspeoject.nb_search.repository;

import com.woniuxy.boot.common.bean.EsMessage;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface MessageSearchRepository extends ElasticsearchRepository<EsMessage, Long> {
//    @Query("{\"bool\": {\"should\": [{\"term\": {\"title\": ?0}}, {\"term\": {\"no\": ?1}} , {\"term\": {\"id\": ?1}}], \"minimum_should_match\": 1}}")
    List<EsMessage> findByTitleOrNoOrId(String title , String no , Long id);
    void deleteAll();

}
